import i18n from '@/utils/i18n'
export const weekList = [
  { value: '1', label: i18n.t('message.z1') },
  { value: '2', label: i18n.t('message.z2') },
  { value: '3', label: i18n.t('message.z3') },
  { value: '4', label: i18n.t('message.z4') },
  { value: '5', label: i18n.t('message.z5') },
  { value: '6', label: i18n.t('message.z6') },
  { value: '7', label: i18n.t('message.z7') },
  { value: '8', label: i18n.t('message.zjr') }
]
export const rules = {
  name: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.tcname'), trigger: 'blur' }
  ],
  mealsType: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.tclx'), trigger: 'change' }
  ],
  nums: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.cs'), trigger: 'blur' }
  ],
  giveNums: [
    { required: false, message: i18n.t('message.qsr') + i18n.t('message.zscs'), trigger: 'blur' }
  ],
  indate: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.yxts'), trigger: 'blur' }
  ],
  assignValidTime: [
    { required: true, message: i18n.t('message.qxz'), trigger: 'change' }
  ],
  channel: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.xsqd'), trigger: 'blur' }
  ],
  circulationDay: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.ffsl'), trigger: 'blur' }
  ],
  content: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.miaoshu'), trigger: 'blur' }
  ],
  price: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.price'), trigger: 'blur' }
  ],
  discountType: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.zklx'), trigger: 'change' }
  ],
  timeSale: [
    { type: 'array', required: true, message: i18n.t('message.qxz') + i18n.t('message.xssdrqsj'), trigger: 'change' }
  ],
  saleDateEnd: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.xssdjsrqsj'), trigger: 'change' }
  ],
  checkedVenue: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.cg'), trigger: 'change' }
  ],
  validityType: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.yxqlx'), trigger: 'change' }
  ],
  validityTime: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.yxq'), trigger: 'change' }
  ],
  validityDays: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.rq'), trigger: 'blur' }
  ]
}

export const mealsTypes = [
  { value: '0', label: i18n.t('message.mpck') },
  { value: '1', label: i18n.t('message.mpqxk') },
  { value: '2', label: i18n.t('message.ydck') },
  { value: '3', label: i18n.t('message.kcyyck') },
  { value: '4', label: i18n.t('message.kcqxk') }
]
